﻿#include "datatable.h"

void GameMusic::readline(std::stringstream& _stream)
{
	_stream 
		>> key
		>> music_dir;
}
void GameMusicTable::readline(std::stringstream& _stream)
{
	GameMusic* data = new GameMusic();
	data->readline(_stream);
	_GameMusicList.insert(std::make_pair(data->key, data));
}

void GameEffect::readline(std::stringstream& _stream)
{
	_stream 
		>> key
		>> effect_dir;
}
void GameEffectTable::readline(std::stringstream& _stream)
{
	GameEffect* data = new GameEffect();
	data->readline(_stream);
	_GameEffectList.insert(std::make_pair(data->key, data));
}

void UTFtest::readline(std::stringstream& _stream)
{
	_stream 
		>> key
		>> data;
}
void UTFtestTable::readline(std::stringstream& _stream)
{
	UTFtest* data = new UTFtest();
	data->readline(_stream);
	_UTFtestList.insert(std::make_pair(data->key, data));
}

void GBtest::readline(std::stringstream& _stream)
{
	_stream 
		>> key
		>> data;
}
void GBtestTable::readline(std::stringstream& _stream)
{
	GBtest* data = new GBtest();
	data->readline(_stream);
	_GBtestList.insert(std::make_pair(data->key, data));
}

void TestDataOne::readline(std::stringstream& _stream)
{
	_stream 
		>> key
		>> data1
		>> data2
		>> data3
		>> data4
		>> data5;
}
void TestDataOneTable::readline(std::stringstream& _stream)
{
	TestDataOne* data = new TestDataOne();
	data->readline(_stream);
	_TestDataOneList.insert(std::make_pair(data->key, data));
}

void TestDataTwo::readline(std::stringstream& _stream)
{
	_stream 
		>> key
		>> data1
		>> data2
		>> data3
		>> data4
		>> data5;
}
void TestDataTwoTable::readline(std::stringstream& _stream)
{
	TestDataTwo* data = new TestDataTwo();
	data->readline(_stream);
	_TestDataTwoList.insert(std::make_pair(data->key, data));
}

void TestDataThree::readline(std::stringstream& _stream)
{
	_stream 
		>> key
		>> data1
		>> data2
		>> data3
		>> data4
		>> data5;
}
void TestDataThreeTable::readline(std::stringstream& _stream)
{
	TestDataThree* data = new TestDataThree();
	data->readline(_stream);
	_TestDataThreeList.insert(std::make_pair(data->key, data));
}

